CMIS 440 Programming Project 2 Project 2 involves building a Web application that is designed using Model 2 architecture. This project is intended to...

profileihofox_klast

 

CMIS 440

Programming Project 2

Project 2 involves building a Web application that is designed using Model 2 architecture.

This project is intended to enforce your knowledge in:

*       developing and implementing Java servlets

*       developing and implementing Java servlets that access request headers, access form data, and manipulate response headers

*       developing Web applications in a standard directory layout and using deployment descriptors

*       understanding the Java servlet life-cycle and configuring Java servlets

*       implementing Web applications that share resources and invoke other Web resources

*       designing and implementing Web applications that use session management

*       developing and implementing Model 2 architecture Web applications

*       handling HTTP errors and Java servlet exceptions

Project Requirements

Develop and implement an employee hiring Web application using Model 2 architecture, that:

*       requires department and employee information from the user

*       stores the new employee personal and hiring data into flat files

*       displays all the employees hired so far and their relevant hiring data (note that this is the only functionality that you have to add to what Example 9 from online Module 3 demonstrates).

The application must use flat text files Departments.txt, Employees.txt, and Hiring.txt to store and/or retrieve its data.

*       The Departments.txt file should contain pairs of: name, description.

*       The Employees.txt file should contain quartets of: name, jobTitle, yearHired, gender

*       The Hiring.txt file should contain pairs of: employeeName, departmentName.

The Web application's form should contain:

*       a combo-box for selecting which department: Human Resources, Software Development, Media Relations

*       four text boxes for entering employees name, jobTitle, yearHired, gender

*       a button for submitting and processing the hiring.

The Web application must use:

*                The Model 2 architecture -- JSP pages for the view, a servletas the controller, and JavaBean and ordinary Java classes as the model.

o    HiringServlet should act as the controller.

o    form.jsp and confirmation.jsp pages should act as the view.

o    Employee, Department, and Hiring JavaBean classes as well as the HiringService and DepartmentService ordinary Java classes should act as the model.

Note 1: Please make sure to examine in details the Web application's structure of Example 9 from online Module 3 (Table of Contents -> Course Content-> Week 4 ->Activities-> Servlets->   Commentary Module 3:Servlets)
Note 2: The Departments.txt text file should be populated with the data listed below before the Web application is used (analogous to the Courses.txt file from Example 9):

 

name 

description

Human Resources

<your choice>

Software Development

<your choice>

Media Relations

<your choice>

The Employees.txt, and Hiring.txt files should be populated through the Web application.

Note: All the input and output should be handled by the view (no Java code implementing input checking or business logic should be placed in the JSPs). All entry information should be properly checked by the controller. All the business logic should be handled by the model.

Project Submission

All the required files should be submitted in your assignment folder in one zip file named StudentFirstInitialStudentLastNameProject2.zip.(For example, awebbProject2.zip):

1.   Design Diagram demonstrating the architecture of the application

2.   a zip file of your Netbeans project  and any additional files if required

3.    Word document including:

a.    Test plan (steps and scenarios including data be used for testing);

b.    Screen snapshots  of each of your test cases (provide input parameters and screenshots demonstrating the results)

4.    Description of the architecture that you implemented

5.    Description of how to set up your application

a.    this description should include all steps starting from how to open your project in NetBeans, how to compile, how to run locally, version of the Netbeans, Application Server used (Tomcat or Glassfish), how to start GlassFish/Tomcat from the netbeans

6.    Description of the Tools and architecture that you implemented, such as

a.    user will open IE and invoke index.jsp located in xxx, index.jsp has an HREF that includes a location of the servlet

b.    the servlet URL is defined in web.xml and etc

7.    SQL Scripts and instructions how to execute them

 

 

 

    • 10 years ago
    • 20
    Answer(0)